package com.easyjop.entity.po;

import com.fasterxml.jackson.annotation.JsonIgnore;
import java.io.Serializable;


/**
 * 考试问题
 */
public class AppExamQuestion implements Serializable {


	/**
	 * 自增ID
	 */
	private Integer id;

	/**
	 * 考试ID
	 */
	private Integer examId;

	/**
	 * 用户ID
	 */
	private String userId;

	/**
	 * 问题ID
	 */
	private Integer questionId;

	/**
	 * 用户答案
	 */
	private String userAnswer;

	/**
	 * 0:未作答 1:正确  2:错误
	 */
	private Integer answerResult;


	public void setId(Integer id){
		this.id = id;
	}

	public Integer getId(){
		return this.id;
	}

	public void setExamId(Integer examId){
		this.examId = examId;
	}

	public Integer getExamId(){
		return this.examId;
	}

	public void setUserId(String userId){
		this.userId = userId;
	}

	public String getUserId(){
		return this.userId;
	}

	public void setQuestionId(Integer questionId){
		this.questionId = questionId;
	}

	public Integer getQuestionId(){
		return this.questionId;
	}

	public void setUserAnswer(String userAnswer){
		this.userAnswer = userAnswer;
	}

	public String getUserAnswer(){
		return this.userAnswer;
	}

	public void setAnswerResult(Integer answerResult){
		this.answerResult = answerResult;
	}

	public Integer getAnswerResult(){
		return this.answerResult;
	}

	@Override
	public String toString (){
		return "自增ID:"+(id == null ? "空" : id)+"，考试ID:"+(examId == null ? "空" : examId)+"，用户ID:"+(userId == null ? "空" : userId)+"，问题ID:"+(questionId == null ? "空" : questionId)+"，用户答案:"+(userAnswer == null ? "空" : userAnswer)+"，0:未作答 1:正确  2:错误:"+(answerResult == null ? "空" : answerResult);
	}
}
